﻿
using System;
namespace CharacterCreation.Data.Annotations {
    [AttributeUsage(AttributeTargets.Property)]
    public class ColumnAttribute : Attribute {
        public string ColumnName { get; set; }
        public string SqlType { get; set; }
        public string Nullable { get; set; }
        public bool IsIdentity { get; set; }

        public ColumnAttribute() { }
        public ColumnAttribute(string columnName, string sqltype, string nullable, bool isIdentity) {
            this.ColumnName = columnName;
            this.SqlType = sqltype;
            this.Nullable = nullable;
            this.IsIdentity = isIdentity;
        }
    }
}
